package com.resou.reader.search.search2;

import com.resou.reader.api.entry.SearchBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.resou.reader.bookshelf.readhistory.datasupport.SearchHistory;

import java.util.List;

//TODO 时间急  后续优化  封装接口
public interface Search2Contract {

    interface ISearchView extends BaseView {
        void initInputBox();

        void initHotWords();

        void initRecyclerView();

        void showHotWord(List<String> data);

        void showHistorySearch(List<SearchHistory> searchHistories);

        void showSearchResult(List<SearchBean> data, String query);

        void showKeyWordResult(List<SearchBean> data, String query);

        void showPage(int state);

        void addSearchResult(List<SearchBean> data, String query);

        void setKeyWordContentShow(List<SearchBean> data, String query);

    }

    interface ISearchPresenter extends BasePresenter {
        void quearAllHistory();

        void deleteAllHistory();

        void saveQuery();

        void searchNext();

        void searchKeyWord();

        void search();

        void getHotWord();
    }
}
